/**
 * Created by IceBean on 2016/8/10.
 */
function People(){

}
    People.prototype.sing=function(){
    alert("hello");
};

function Student(){

}
    Student.prototype=new People();
    Student.prototype.sing=function(){
    alert("hihello")
};
var s=new Student();
s.sing();